using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using THSLib;using THSERP.BaseProvider;

namespace THSERP.Modules.BranchStatistics
{
    public partial class guiPrintBranchSaleStatistics : THSERPScreen
    {
        public guiPrintBranchSaleStatistics()
        {
            InitializeComponent();
        }

        private void guiPrintBranchSaleStatistics_Load(object sender, EventArgs e)
        {
            fld_dteBRPOSDate.EditValue = DateTime.Now.Date;
        }

        private void fld_btnPrint_Click(object sender, EventArgs e)
        {
            String strReportFileName = System.Windows.Forms.Application.StartupPath + "\\Reports\\" + Module.Name + "\\" + "BranchSaleStatistics.rpt";
            ReportHelper.FileName = strReportFileName;
            Hashtable reportParams = new Hashtable();
            reportParams.Add("prFromDate", ((DateTime)fld_dteBRPOSDate.EditValue).Date);
            reportParams.Add("prToDate", ((DateTime)fld_dteBRPOSDate.EditValue).Date.AddDays(1));
            ReportHelper.DisplayReport(reportParams);
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}